package com.baylor.server.base.security;

import com.baylor.server.base.entity.OauthClientDetails;

/**
 * @author zj
 */

public interface OauthService {

    OauthClientDetails loadOauthClientDetails(String clientId);
    
    /**
     * 通过accessToken获取该用户的用户名
     * @param accessToken
     * @return String username
     */
    public String getUserNameByToken(String accessToken);
}